We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X
Maximize Your Experience: Reap the Personalized Advantages by Completing Your Profile to Its Fullest. Update Here
Stay in the loop with the latest from Microchip. Update your profile while you are at it. Update Here
Complete your profile to access more resources. Update Here

MPLAB® XC Compilers

Explore Our Award-Winning MPLAB XC Compilers


Available as free, unrestricted-use downloads with a range of optimizations, our award-winning MPLAB® XC C compilers are comprehensive solutions for your project’s software development. Finding the right compiler to support your device is simple. Check out all our MPLAB XC Compiler options below.

All previously paid versions of our MPLAB XC PRO compilers are now free, without restrictions. Get advanced optimization capabilities without licensing friction or budget constraints.

MPLAB XC compilers are supported in various integrated development environments (IDEs), including Microsoft® Visual Studio Code® (VS Code®) via MPLAB for VS Code.

MPLAB® XC Compiler

MPLAB XC8 Compiler

The MPLAB XC8 Compiler supports all 8-bit PIC® and AVR® microcontrollers (MCUs).

MPLAB XC16 Compiler

The MPLAB XC16 Compiler supports all 16-bit PIC MCUs.

MPLAB XC-DSC Compiler

The MPLAB XC-DSC C Compiler supports all dsPIC® DSCs.

MPLAB XC32 Compiler

The MPLAB XC32 C/C++ Compiler supports all 32-bit PIC and SAM MCUs and MPUs featuring Arm® and MIPS® cores.

MPLAB XC Compiler Optimizations


The optimizations found on MPLAB XC C compilers provide code-size reductions and speed enhancements that benefit your design. All optimizations are free.

If you're unsure which optimizations are best for your design, our free MPLAB XC Compiler Advisor can help you find the best one for your project. The advisor will analyze which of the available optimizations, all of which are at no cost, will benefit your design:

  • O0 – No optimizations
  • O1 - Invokes all optimizations that won't affect debugging
  • O2 - Invokes a balanced set of speed and size optimizations
  • Os - Gives maximum code size reductions
  • O3 - Gives the best speed optimizations
  • mpa (procedural abstraction) - Reduces code size even further

Catalina Support


The first versions of the MPLAB XC compilers that supported Catalina were:

  • MPLAB XC8 - v2.20
  • MPLAB XC16 - v1.50
  • MPLAB XC32 - v2.41

GCC Compilers


Looking for information on GCC Compilers for AVR® and Arm®-based MCUs and MPUs? View toolchain options and information using the link below.

Hexmate


Hexmate is a powerful post-link utility designed to process Intel® HEX files for embedded development. It is shipped with the MPLAB XC8 C Compiler and MPLAB X Integrated Development Environment (IDE), but can also be executed as a stand-alone application to process HEX files produced by any compiler.

Title
Shasum
Version Number
Hexmate (Linux)
fa12a75fa1a56c740c73220cfa849c6501e98228 3.10 Download
Hexmate (macOS)
12c599222563c55db0069b2feaea33f46b6baf80 3.10 Download
Hexmate (Windows)
231a1737f880af174fefbab883b83fd85c3fce2a 3.10 Download
Hexmate User's Guide Download

Microchip Unified Standard Library Reference Guide


Title
Microchip Unified Standard Library Reference Guide Download

MPLAB Development Ecosystem Tools and Other Resources


MPLAB X IDE CI/CD Wizard

MPLAB X IDE CI/CD Wizard

By using a Continuous Integration and Continuous Deployment (CI/CD) system, you can receive feedback quickly in your software development. Quick feedback can help improve the quality and reliability of your code by automating much of the building and testing process.

MPLAB Analysis Tool Suite

MPLAB Analysis Tool Suite

MPLAB Analysis Tool Suite is a collection of analysis tools integrated into the MPLAB X IDE. It supports all of our MCU, MPU and CEC devices and offers a code coverage feature and a Motor Industry Software Reliability Association (MISRA®) check in the IDE. 

Microchip University

Microchip University

Get FREE training on Microchip products 24 hours a day, every day. We offer on-demand courses and live sessions on general embedded control topics as well as Microchip, Atmel and Microsemi products. Learn how to improve your business by using Microchip products to their full advantage.

MPLAB XC Functional Safety Compilers


We offer a TÜV SÜD-certified MPLAB XC Functional Safety Compiler package for PIC®, dsPIC®, AVR® and SAM devices that reduces your software tool qualification effort. The functional safety compilers in this package are certified and pre-qualified for safety-related development according to ISO 26262, IEC 61508, EN 50716, IEC 62304 and IEC 60730‑1. The package includes the functional safety manual and certification artifacts, such as classification and qualification reports, to support your tool qualification activities.

Use our MPLAB XC functional safety compilers with full optimization and unlimited installs at no cost. Purchase the certification package when formal safety evidence is required.

Microchip offers a TÜV SÜD certified functional safety compiler package

Need Some Help?


We are here to support you. Contact our Client Success Team to get assistance with your design.











Support

Live Chat

Need Help?

Privacy Policy